package com.mc.read.pcApi.controller;

import com.mc.read.pcApi.service.PublicService;
import com.mc.read.vo.respose.BaseRespose;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author liuhao
 * @date 2019/6/15 10:51
 */
@Controller
@RequestMapping(value = "/public")
public class PublicController {
    @Autowired
    PublicService publicService;

    /**
     * @Author:LiuHao
     * @Date:15:24 2019/5/31
     * 增加下载记录 addDownload
     **/
    @ResponseBody
    @RequestMapping(value = "addDownload")
    public BaseRespose addDownload(HttpServletRequest request) {
        BaseRespose baseRespose = publicService.addDownload(request);
        return baseRespose;
    }

}
